import request from "../utils/request";

export function getClassData() {
    return request({
        url: "/catalog/index",
        method: "get",
    })
}
export function getCurrent(id) {
    return request({
        url: "/catalog/current",
        method: "get",
        params: {
            id: id
        }
    })
}

export function getCategory(id) {
    return request({
        url: "/goods/category",
        method: "get",
        params: {
            id: id
        }
    })
}

export function getList(data) {
    return request({
        url: "/goods/list",
        method: "get",
        params: data
    })
}
